<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<div v-test="{name:'王超',job:'h5'}"></div>
		</div>
		<script src="js/vue2.5.js">
		<script>
			var vm = new Vue({
				el:'#app',
				directives:{
					'test':{
						bind(el,binding,vnode){
							console.log('1',binding.value.name);
							console.log('2',binding.value.job);
						}
					}
				}
			})
		</script>
	</body>
</html>
